<template>
  <h2>用户投资赎回列表</h2>
  <InvestInfoContent v-slot="item">
    <a href="#" @click="onUserRedeemDetail(item.id)">用户赎回明细</a>
  </InvestInfoContent>
</template>

<script setup lang="ts">
import InvestInfoContent from './InvestInfoContent.vue';

import { useRouter } from 'vue-router';
const router = useRouter();

const onUserRedeemDetail = (id: number) => {
    console.log(id);
    router.push({
        path: '/ShowAllRedeemDetail',
        query: {
            id: id
        }
    });
};



</script>